GM.Help = [[<html>

<head>

<style>
	body
	{
		background-color:black;
		font-family:tahoma,verdana,arial;
		font-size:8pt;
		color:white;
		padding:4px;
		padding-right:16px;
	}
	tr
	{
		border-top,border-bottom:1px dotted white;
	}
	h3
	{
		font-weight:bolder;
		text-align:center;
		text-decoration:underlined;
		font-size:22pt;
		margin-bottom:12px;
		color:EEEE00;
	}
	h4
	{
		font-weight:bolder;
		text-decoration:underlined;
		font-size:12pt;
		margin-bottom:10px;
		color:EEEE00;
	}
	table
	{
		font-size:8pt;
		width:90%;
		margin-left:auto;
		margin-right:auto;
	}
</style>

</head>

<body>
<h3>Hover Gear Legacy</h3>
<h4>Synopsis</h4>
Hover Gear is a top skilled based racing/driving game, you must finish the race and win 1st place! But beware, the cars DO NOT HAVE ANY FRICTION TO THE FLOOR, so you might have a hard 
time steering.
<br>
<!-- <br><br>
<span style="color:red;text-decoration:underlined">It's strongly recommended that you have Counter-Strike: Source or its resource pack installed. If not then you may have missing textures and models.</span> -->

<h4>Controls</h4>
<table rules="rows">
	<thead>
		<th width="25%">Key</th>
		<th width="75%">Action</th>
	</thead>
	<tbody>
		<tr>
			<td>W / S</td>
			<td>Gas / Reverse</td>
		</tr>
		<tr>
			<td>A / D</td>
			<td>Steer (SEE JUMP for other steering mode)</td>
		</tr>
		<tr>
			<td>R</td>
			<td>Respawn</td>
		</tr>
		<tr>
			<td>JUMP</td>
			<td>In racing mode: STRAFE MODE (HOLD then TAP A or D)<br>
			In crowd mode: CHANGES CAMERA VIEWMODE (While in SPECTATOR MODE)<br>
			</td>
		<tr>
			<td>SPRINT</td>
			<td>In racing mode: NONE<br>
			In crowd mode: RUN
			</td>
		</tr>
		</tr>
		<tr>
			<td>DUCK</td>
			<td>In racing mode: CHANGES CAMERA VIEWMODE<br>
			In crowd mode: TOGGLES TO SPECTATOR MODE
			</td>
		</tr>
		<tr>
			<td>F1</td>
			<td>Help Window</td>
		</tr>
		<tr>
			<td>F2</td>
			<td>Join/Un-join Racing Queue</td>
		</tr>
		<tr>
			<td>F3</td>
			<td>Radio (Not done)</td>
		</tr>
		<tr>
			<td>F4</td>
			<td>Options</td>
		</tr>
	</tbody>
</table>

<h4>How to play</h4>
Join the racing queue to join the next upcoming race. Once joined, finish the race and win 1st
place! You might win something good in return.
<br><br>
Remember, there is NO FRICTION with the floor! You MUST steer early in order to do a perfect turn.
Have problems with steering? Use STRAFE MODE to help you a bit.

<h4>Tips and other info</h4>
<ul>
<li>Think you're playing asterioids, but in a racing form.</li>
<li>Steer early to prevent any collision to other racers or straightly placed walls.</li>
<li>The vehicle will auto-adjust to other platforms by their angles. Lower angles will have more effect than higher angles (35 degrees vs 90 degrees).</li>
<li>Use STRAFE MODE by holding JUMP and tap the A or D keys.</li>
<li>Change camera modes, there are multiple camera modes for your racing needs.</li>
<li>Avoid TERMINAL RACING SPEED, you might have problems with the turns.</li>
<li>Stuck? Try nudging a bit (mash keyboard), if not then R to respawn.</li>
</ul>

<h4>Credits</h4>
Created by William "JetBoom" Moodhe (jetboom@yahoo.com)<br>
Revived by Rover<br>
Fixed (GMOD13) by ptown2<br>
<br>
http://noxiousnet.com

</body>

</html>]]

function MakepCredits()
	LocalPlayer():EmitSound("buttons/lightswitch2.wav", 100, 30)
	
	if IsValid(pCredits) then
		pCredits:SetAlpha(0)
		pCredits:AlphaTo(255, 0.5, 0)
		pCredits:SetVisible(true)
		pCredits:MakePopup()
		return
	end

	local wid = 800

	local y = 4

	local frame = vgui.Create("DFrame")
	frame:SetWide(wid)
	frame:SetTitle(" ")
	--frame:SetKeyboardInputEnabled(false)
	pCredits = frame

	local label = EasyLabel(frame, GAMEMODE.Name.." Credits", "ScoreboardText", color_white)
	label:SetPos(wid * 0.5 - label:GetWide() * 0.5, y)
	y = y + label:GetTall() + 4

	local ctrl = vgui.Create("DListView", frame)
	local Col1 = ctrl:AddColumn("Name")
	local Col2 = ctrl:AddColumn("Contact")
	local Col3 = ctrl:AddColumn("Credits")
	Col2:SetMinWidth(100)
	Col2:SetMinWidth(100)
	Col3:SetMinWidth(200)
	for authorindex, authortab in ipairs(GAMEMODE.Credits) do
		ctrl:AddLine(unpack(authortab))
	end
	ctrl:SetSize(wid - 32, 140)
	ctrl:SetPos(16, y)
	y = y + ctrl:GetTall() + 8

	frame:SetTall(y)
	frame:Center()
	frame:SetAlpha(0)
	frame:AlphaTo(255, 0.5, 0)
	frame:MakePopup()
end

function MakepHelp()
	if IsValid(LocalPlayer()) then
		LocalPlayer():EmitSound("buttons/lightswitch2.wav", 100, 30)
	end

	if pHelp then
		pHelp:SetAlpha(0)
		pHelp:AlphaTo(255, 0.5, 0)
		pHelp:SetVisible(true)
		pHelp:MakePopup()
		return
	end

	local wide, tall = 500, ScrH() * 0.9

	local Window = vgui.Create("DFrame")
	Window:SetSize(wide, tall)
	Window:Center()
	Window:SetTitle(" ")
	--Window:SetDraggable(false)
	Window:SetDeleteOnClose(false)
	--Window:SetKeyboardInputEnabled(false)
	Window:SetCursor("pointer")
	pHelp = Window

	local label = EasyLabel(Window, GAMEMODE.Name.." Help Window", "ScoreboardText", color_white)
	label:CenterHorizontal()
	label:AlignTop(4)
	
	local html = vgui.Create("HTML", Window)
	html:StretchToParent(8, 32, 8, 44)
	html:SetHTML(GAMEMODE.Help)

	Window:Center()
	Window:MakePopup()
	
	local button = EasyButton(Window, "Admin Menu", 8, 4)
	button:SetPos(12, tall - button:GetTall() - 12)
	button:SetText("Admin Menu")
	button.DoClick = function(btn) MakepAdminOptions() end

	local button = EasyButton(Window, "Credits", 8, 4)
	button:SetPos(wide - button:GetWide() - 12, tall - button:GetTall() - 12)
	button:SetText("Credits")
	button.DoClick = function(btn) MakepCredits() end

	gamemode.Call("BuildHelpMenu", Window, propertysheet)

	Window:SetAlpha(0)
	Window:AlphaTo(255, 0.5, 0)
	Window:MakePopup()
end

function GM:BuildHelpMenu(window, propertysheet)
end

concommand.Add("hghelpopen", MakepHelp)